using Godot;

public partial class MyMenu : Control
{
	private Button startGame;
	private Button startEditor;
	private Button quit;

	public override void _Ready()
	{
		startGame = GetNode<Button>("CenterContainer/VBoxContainer/StartButton");
		startEditor = GetNode<Button>("CenterContainer/VBoxContainer/StartEditorButton");
		quit = GetNode<Button>("CenterContainer/VBoxContainer/QuitButton");

		GD.Print("Load Menu");
	}

	private void StartGamePressed()
	{
		GetTree().ChangeSceneToPacked(GD.Load<PackedScene>("res://InGame/TestGame/TestGame.tscn"));
	}

	private void startEditorPressed()
	{
		GetTree().ChangeSceneToPacked(GD.Load<PackedScene>("res://InGame/Editor/TestGame.tscn"));
	}
	private void QuitPressed()
	{
		GetTree().Quit();
	}

}
